#!/usr/bin/python

while True:
	s = raw_input('Enter str');
	if s == 'quit':
		break;
	if len(s)<3:
		continue;
	print 'Input str';
